V = Variables
R = Reading functions
BINARIO —→ SIGNED BYTE
The VR10BinToSBy function converts a binary variable type in a Signed Byte type (byte with sign).
VR10BinToSBy (array, index, return, errcode)
Parameters:
| IN/OUT | VARIBLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | ARRGBL | array | B | Array containing the data to be converted (must be declared at least “index” elements) |
| IN | GLOBAL | index | L | Index of the array element at the beginning the data |
| OUT | GLOBAL | return | B | Data value converted |
| OUT | GLOBAL | errcode | F | Variable that indicates a possible error on the function |
Una volta richiamata la funzione, 'errcode' può assumere determinati valori, il significato di tali valori è riassunto di seguito:
0: Nessun errore
Trasforma il valore -5 (binario) in un valore signed byte
index = 1 array[1] = -5 VR10BinToSBy (array, index, return, errcode) ;Sul dato return si troverà : ; return = -5